package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 巡更流水表
 * </p>
 *
 * @author pan
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CrmQrRecord对象", description="巡更流水表")
public class CrmPatrolRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "巡更路线ID")
    @TableField("route_patrol_id")
    private Long routePatrolId;

    @ApiModelProperty(value = "巡更开始时间")
    @TableField("patrol_start_time")
    private LocalDateTime patrolStartTime;

    @ApiModelProperty(value = "巡更结束时间")
    @TableField("patrol_end_time")
    private LocalDateTime patrolEndTime;

    @ApiModelProperty(value = "巡更人员ID")
    @TableField("patrol_user_id")
    private String patrolUserId;

    @ApiModelProperty(value = "巡更状态(0、正常，1、异常)")
    @TableField("patrol_status")
    private Integer patrolStatus;

    @ApiModelProperty(value = "巡更流水类型(0、二维码，1、视频)")
    @TableField("patrol_type")
    private Integer patrolType;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no")
    @TableField("is_deleted")
    private Integer isDeleted;
}
